using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;using Maxleaf.EDI.Domain.K3;

namespace Maxleaf.EDI.DataAccess.K3
{
    public class t_BasePropertyMap : EntityTypeConfiguration<t_BaseProperty>
    {
        public t_BasePropertyMap()
        {
            // Primary Key
            this.HasKey(t => t.FSeqID);

            // Properties
            this.Property(t => t.FCreateUser)
                .HasMaxLength(30);

            this.Property(t => t.FLastModUser)
                .HasMaxLength(30);

            this.Property(t => t.FDeleteUser)
                .HasMaxLength(30);

            // Table & Column Mappings
            this.ToTable("t_BaseProperty");
            this.Property(t => t.FSeqID).HasColumnName("FSeqID");
            this.Property(t => t.FTypeID).HasColumnName("FTypeID");
            this.Property(t => t.FItemID).HasColumnName("FItemID");
            this.Property(t => t.FCreateDate).HasColumnName("FCreateDate");
            this.Property(t => t.FCreateUser).HasColumnName("FCreateUser");
            this.Property(t => t.FLastModDate).HasColumnName("FLastModDate");
            this.Property(t => t.FLastModUser).HasColumnName("FLastModUser");
            this.Property(t => t.FDeleteDate).HasColumnName("FDeleteDate");
            this.Property(t => t.FDeleteUser).HasColumnName("FDeleteUser");
        }
    }
}
